﻿using YNTK.Dependency;

namespace YNTK.SimpleWorkflow.Entitys
{
    /// <summary>
    /// 日常工作审核记录数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class WorkflowAuditRecordListDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 审核节点id
        /// </summary>
        public string nodeId { get; set; }

        /// <summary>
        /// 审核节点名称
        /// </summary>
        public string nodeName { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? creatorTime { get; set; }

        /// <summary>
        /// 操作人Id
        /// </summary>
        public string operatorId { get; set; }

        /// <summary>
        /// 操作人姓名
        /// </summary>
        public string operatorName { get; set; }

        /// <summary>
        /// 操作类型(0.提交申请 1.审核 2.发起人确认)
        /// </summary>
        public int operateType { get; set; }

        /// <summary>
        /// 操作类型文本
        /// </summary>
        public string operateTypeText { get; set; }

        /// <summary>
        /// 状态(0.提交申请 1.审核通过 2.审核不通过 3.驳回 4.发起人已确认)
        /// </summary>
        public int state { get; set; }

        /// <summary>
        /// 状态文本
        /// </summary>
        public string stateText { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 签名图片存储路径
        /// </summary>
        public string signatureImagePath { get; set; }
    }

    /// <summary>
    /// 日常工作审核记录详细信息传输模型
    /// </summary>
    [SuppressSniffer]
    public class WorkflowAuditRecordInfoDto: WorkflowAuditRecordListDto
    {
        /// <summary>
        /// 审核相关附件数据
        /// </summary>
        public List<WorkflowFileListDto> fileData { get; set; }
    }

}
